package com.drcurd.service;

import com.drcurd.entity.Department;

import java.util.List;

public interface DepartmentService {
    
    // 查询所有部门
    List<Department> getAllDepartments();
    
    // 根据ID查询部门
    Department getDepartmentById(Long id);
    
    // 新增部门
    boolean addDepartment(Department department);
    
    // 更新部门
    boolean updateDepartment(Department department);
    
    // 删除部门
    boolean deleteDepartment(Long id);
    
    // 分页查询
    List<Department> getDepartmentsByPage(Integer page, Integer size);
    
    // 获取总数
    int getDepartmentCount();
    
    /**
     * 根据条件查询部门
     */
    com.github.pagehelper.PageInfo<Department> getDepartmentListByCondition(com.drcurd.dto.DepartmentQueryDTO queryDTO);
} 